Repository navigation
own: a global array of constant arrays is no keeper; captured function values; constructor parameters past calls; borrows across releases of unrelated types (TSLANG 80, 82-84) - #858
Merged
Conversation
…st calls, when `this` never escapes (TSLANG 80) No call can reach an object the constructor only reads for its fields, so none writes them; the pairing of the parameter with its field now sees past calls there. No copy is made (a copy leaks the parameter the caller gave). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… hold it (TSLANG 82) MLIRGen lists the module's @Final classes, and its declared @cpp ones, on the module; dropsChain follows the released type's fields for a chain whose places are not known, for a release and for a call whose drops are known stores. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… local is borrowed, not freed (TSLANG 83) Its rows are blocks the literal makes, never made immortal, so a keeper's read let a local own one and free it on each call (a double free: a hang at exit or a crash). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e functions stored into it (TSLANG 82); the type-reachability fix is TSLANG 84 When every store into the captured value's box field is a function's symbol, and the closures given the box write none of its fields, the call resolves to those functions. TSLANG 82 is the issue main's TSLANG_ISSUES numbers so; the release-type fix of the previous commit becomes 84. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
Author
|
DefaultLib ctest: 100% tests passed, 0 tests failed out of 7435 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
More
-mm=ownfixes (TSLANG 80, 82, 83, 84, written up in TSLANG_ISSUES.md). 82 and 83 are the issues #857 recorded.const meta = POOL[idx]) was freed on each call: a double free, which hung at exit or crashed.letanother closure assigns stays unknown.thisnever escapes the constructor (no call can reach the object).@finalclasses, and its declared@cppones, on the module (ts.own_final_classes).@finalclass, or an array.Tests
00tslang_issue_80,00tslang_issue_82,00tslang_issue_83,00tslang_issue_84.own_err_escaped_this_field_readown_err_closure_reassigned_captured_callown_err_borrowed_result_holder_storedValidation
tests.ps1: all four models passed. Results are in a comment.🤖 Generated with Claude Code